package pl.pasu.mydiet.client.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class DietUserDTO implements Serializable {
	private Long id;
	private String displayName;
	private String password;
	private Date created;
	private List<DietPlanDTO> plans;

	public DietUserDTO() {
	}

	public DietUserDTO(Long id) {
		this.id = id;
	}

	public DietUserDTO(Long id, String displayName, String password,
			Date created, List<DietPlanDTO> plans) {
		this.id = id;
		this.displayName = displayName;
		this.password = password;
		this.plans = plans;
		this.created = created;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public List<DietPlanDTO> getPlans() {
		return plans;
	}

	public void setPlans(List<DietPlanDTO> plans) {
		this.plans = plans;
	}

	@Override
	public String toString() {
		return "id=" + id + ", name=" + displayName + ", password=" + password
				+ ", created=" + created + ", plans=" + plans;
	}

}